<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>my page</title>
    <script src="../static/js/j.js"></script>

</head>
<body>
    <h1>第一个页面</h1>
    <button>点击我</button>
    <script>
        $("button").click(function () {
            $.ajax({
                url:"/ajax",
                type:"post",
                data:{"name":"李四","scrot":99},
                success:function (d) {
                    $("h1").html("武汉加油"+d)
                },error:function(){
                    alert("发送ajax失败")
                }
            });
        });
    </script>
</body>
</html>